﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="True" CodeBehind="ManageEvaluations.aspx.cs" Inherits="BSCMFF.Web.Pages.Evaluation_Setup.Personalist.ManageEvaluations" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

      <div>
        <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" 
            DataSourceID="EntityDataSourceEvaluations" GridLines="None" 
            onitemcommand="RadGrid1_ItemCommand" meta:resourcekey="RadGrid1Resource1">
            
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID"  CommandItemDisplay="Top"
                            DataSourceID="EntityDataSourceEvaluations">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>

            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>

                <Columns>
                    <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" 
                        FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" 
                        SortExpression="ID" UniqueName="ID" 
                        meta:resourcekey="GridBoundColumnResource1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" 
                        FilterControlAltText="Filter Name column" HeaderText="Name" 
                        SortExpression="Name" UniqueName="Name" 
                        meta:resourcekey="GridBoundColumnResource2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Description" 
                        FilterControlAltText="Filter Description column" HeaderText="Description" 
                        SortExpression="Description" UniqueName="Description" 
                        meta:resourcekey="GridBoundColumnResource3">
                    </telerik:GridBoundColumn>
                    <%--<telerik:GridBoundColumn DataField="Instruction" 
                        FilterControlAltText="Filter Instruction column" HeaderText="Instruction" 
                        SortExpression="Instruction" UniqueName="Instruction">
                    </telerik:GridBoundColumn>--%>
                    <telerik:GridBoundColumn DataField="StartDate" DataType="System.DateTime" DataFormatString="{0:d}"
                        FilterControlAltText="Filter StartDate column" HeaderText="StartDate" 
                        SortExpression="StartDate" UniqueName="StartDate" 
                        meta:resourcekey="GridBoundColumnResource4">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="EndDate" DataType="System.DateTime" DataFormatString="{0:d}"
                        FilterControlAltText="Filter EndDate column" HeaderText="EndDate" 
                        SortExpression="EndDate" UniqueName="EndDate" 
                        meta:resourcekey="GridBoundColumnResource5">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Status" HeaderStyle-Width="80"
                        FilterControlAltText="Filter Status column" HeaderText="Status" 
                        SortExpression="Status" UniqueName="Status" 
                        meta:resourcekey="GridBoundColumnResource6">
<HeaderStyle Width="80px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Repetition" DataType="System.Boolean" Visible="false"
                        FilterControlAltText="Filter Repetition column" HeaderText="Repetition" 
                        SortExpression="Repetition" UniqueName="Repetition" 
                        meta:resourcekey="GridCheckBoxColumnResource1">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridButtonColumn CommandName="Select" Text="Preview" 
                        meta:resourcekey="GridButtonColumnResource1" >
                    </telerik:GridButtonColumn>
                    <telerik:GridButtonColumn CommandName="Edit" Text="Edit" 
                        meta:resourcekey="GridButtonColumnResource2" >
                    </telerik:GridButtonColumn>
                    <%--<telerik:GridButtonColumn CommandName="Delete" Text="Delete" >
                    </telerik:GridButtonColumn>--%>
                </Columns>

            <EditFormSettings >
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
            </EditFormSettings>
            <CommandItemSettings ShowRefreshButton="false" AddNewRecordText="Add New Evaluation Perios"/>
            </MasterTableView>

            <FilterMenu EnableImageSprites="False"></FilterMenu>

            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
                    </telerik:RadGrid>
                <br />

                <%-- <bsc:EvaluationDetails ID="ev2" runat="server" />--%>
                </div>
                <asp:EntityDataSource ID="EntityDataSourceEvaluations" runat="server" 
                    ConnectionString="name=BSCEntities" DefaultContainerName="BSCEntities" 
                    EnableDelete="True" EnableFlattening="False" EnableInsert="True" 
                    EnableUpdate="True" EntitySetName="Evaluation_Period" 
          EntityTypeFilter="" Select="">
                </asp:EntityDataSource>
            <%--
                <asp:Button ID="btnNewEntry" runat="Server" CssClass="button" Text="New Entry" 
                OnClick="btnNewEntry_Click" OnClientClick="Form1.target ='_blank';"/>--%>

</asp:Content>
